/*
 * 搞清楚变量内存布局情况！
 * code by hopy
 * 2013-09-17
*/
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <unistd.h>

typedef unsigned char byte,*pbyte;

int main(void)
{
	unsigned x = 0x12345678,*p = &x;
	byte *pb = (pbyte)p;
	printf("%08X in mem is :(%p)%02x %02x %02x (%p)%02x\n",\
		x,pb,*pb,*(pb+1),*(pb+2),pb+3,*(pb+3));
	puts("both hehe");
	return 0;
}
